const  wsArr=require("./wsArr")

let myWsArr=new wsArr
myWsArr.start({
	code:0,
	id:1,
	close:()=>{console.log("清除1")},
	send:()=>{console.log("更改1")}
})
myWsArr.start({
	code:0,
	id:2,
	close:()=>{console.log("清除2")},
	send:()=>{console.log("更改2")}
})
myWsArr.start({
	code:0,
	id:2,
	close:()=>{console.log("清除22")},
	send:()=>{console.log("更改22")}
})
myWsArr.update(0)
myWsArr.clear(0)

console.log("myWsArr:",myWsArr.arr);